package com.seahorse.youliao.service;

import com.seahorse.youliao.exception.BusinessException;

/**
 * @description: 支付宝支付service
 * @author: Mr.Song
 * @create: 2020-03-07 17:22
 **/
public interface AliPayService {


    /**
     *  下单生成二维码
     * @param orderNo
     * @return 二维码base64
     */
    String createTradeQRCode(String orderNo);


    /**
     * 支付宝退款
     * @param orderNo
     * @throws BusinessException
     */
    void tradeRefund(String orderNo) throws BusinessException;


    /**
     * 第三方支付结果查询
     * @param orderNo
     * @throws BusinessException
     */
    void tradeQuery(String orderNo) throws BusinessException;
}
